package com.shop.seller.service;

import java.util.List;

import com.shop.domain.CustomGoods;
import com.shop.domain.CustomGoodsdesc;
import com.shop.domain.CustomItem;
import com.shop.domain.GoodsQueryVo;
import com.shop.domain.PageResult;
import com.shop.model.Goods;
import com.shop.model.Goods_desc;
import com.shop.model.Item;
/**
 * 
 * @author Y
 *
 */
public interface GoodsService {
	
	/**
	 * 添加商品
	 * @param goods
	 * @throws Exception
	 */
	public void addGoods(GoodsQueryVo goods)throws Exception;
	
	
	/**
	 * 
	 * 查找所有商品  分页查找
	 * @param good  商品信息spu
	 * @param pageNum  页号
	 * @param pageSize  每页数据的大小
	 * @return
	 * @throws Exception
	 */
	public PageResult findPage(Goods goods,Integer pageNum,Integer pageSize) throws Exception;
	
	
	
	/**
	 * 根据id删除商品
	 * @param id  good表spu商品id
	 * @return
	 * @throws Exception
	 */
	public boolean deleteGoods(Long id) throws Exception;
		
	
	
	/**
	 * 商品修改以及更新(审核状态，上下架状态)
	 * @param goods
	 * @return
	 * @throws Exception
	 */
	public boolean updateGoods(Goods goods) throws Exception;
	
	
	
	/**
	 * 通过spu商品的id查找商品
	 * @param id  spu商品id
	 * @return
	 * @throws Exception
	 */
	public Goods findGoodsById(Long id) throws Exception;
	
	
	
	 
	
}
